home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 22
/
Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso
/
Aminet
/
dev
/
amos
/
amos_col.lha
/
AMOS-COL
/
Stars.amos
/
Stars.amosSourceCode
Wrap
AMOS Source Code
|
1980-01-10
|
883b
|
38 lines
' STARS:
' CODE: DELTA/OPIUM
' REQUIRED: AMOSPRO-TURBO.LIB (1.9+)
' CTX:
' DELTA
' UL. W�oska 4d/6
' 42-600 Tarnowskie G�ry
' POLAND
'
' SOMETHING ABOUT IT:
' NUM - numer of star
' X,Y - x coordinate and y coordinate on the screen
' XS,YS - x speed and y speed
'_STARS,_END - stars to calculate
'
Screen Open 0,320,256,2,Lowres
Flash Off : Curs Off : Cls 0 : Palette $0,$FFF
Extension_12_03C8 500
For B=1 To 500
_MAKE_STAR[B,Rnd(320),Rnd(256),Rnd(3)+1,Rnd(3)+1]
Next
A=Execall(-132)
Double Buffer : Autoback 0
Do
_COMPUTE_STARS[1,100]
Screen Swap
Wait Vbl
Extension_12_03A6 -1
If Mouse Key Then A=Execall(-138) : End
Loop
Procedure _MAKE_STAR[NUM,X,Y,XS,YS]
Extension_12_03DC NUM,X,Y,XS,YS
End Proc
Procedure _COMPUTE_STARS[_START,_END]
Extension_12_041C _START To _END
Extension_12_03F6
End Proc